home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / DemoText / UDemoText.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  1.1 KB  |  55 lines  |  [TEXT/MPS ]

  1. // Copyright © 1989-96 by Apple Computer, Inc. All rights reserved.
  2. // UDemoText.h
  3.  
  4. // This sample application demonstrates the breadth of alternatives
  5. // available when using the MacApp building-block "UTEView" for text-editing.
  6.  
  7. #ifndef __UDEMOTEXT__
  8. #define __UDEMOTEXT__
  9.  
  10. // DemoText
  11.  
  12. #ifndef __UTEDOCUMENT__
  13. #include "UTEDocument.h"
  14. #endif
  15.  
  16. // MacApp
  17.  
  18. #if qPowerTalk
  19.     #ifndef __UMAILINGAPPLICATION__
  20.     #include "UMailingApplication.h"
  21.     #endif
  22. #else
  23.     #ifndef __UAPPLICATION__
  24.     #include "UApplication.h"
  25.     #endif
  26. #endif
  27.  
  28. #ifndef __UTEVIEW__
  29. #include "UTEView.h"
  30. #endif
  31.  
  32. const unsigned long kSignature    = 'SS04';            // application signature
  33. const unsigned long kFileType    = kTextFileType;    // file-type code for saved disk files 
  34.                                                         
  35. #if qPowerTalk
  36. class TDemoTextApplication : public TMailingApplication
  37. #else
  38. class TDemoTextApplication : public TApplication
  39. #endif
  40. {
  41.     MA_DECLARE_CLASS;
  42.  
  43.   public:
  44.     virtual ~TDemoTextApplication();
  45.         // Destructor
  46.  
  47.     virtual void IDemoTextApplication(void);
  48.         // Initialize the Application
  49.  
  50.     virtual TDocument *DoMakeDocument(CommandNumber itsCommandNumber, TFile* itsFile);
  51.         // Launches a TTextDocument
  52. };
  53.  
  54. #endif
  55.